

#include <sdk_list.h>

#include <stdlib.h>

int main(int argc, char **argv){

  sdk_list *list = sdk_list_create();

  int i = 0;
  for ( ; i < 9; i++){
    sdk_elem *elem = (sdk_elem *)malloc(sizeof(sdk_elem));
    elem->num = i;
    sdk_list_add(list, elem);
  }

  _sdk_list_print_sum(list);

  sdk_list_remove_num(list, 0);
  sdk_list_remove_num(list, 1);
  sdk_list_remove_num(list, 2);
  sdk_list_remove_num(list, 3);
  sdk_list_remove_num(list, 4);
  sdk_list_remove_num(list, 5);
  sdk_list_remove_num(list, 6);
  sdk_list_remove_num(list, 7);
  sdk_list_remove_num(list, 8);

  _sdk_list_print_sum(list);

  sdk_list_destroy(list);

}
